package online.lmds.sdmanage.common.utils;

import online.lmds.sdmanage.main.authentication.AuthConsts;

/**
 * Created by Brighten Ma on 2017/4/15.
 *
 * 随机序列生成工具
 */
public class RandomGenerateUtils {


    /**
     * 生成随机token
     * @param phone
     * @return
     */
    public static String generateToken(String phone) {
        String str = phone + AuthConsts.SALT + System.currentTimeMillis();
        return MessageDigestUtils.getSHA1(str, AuthConsts.SALT);
    }
}
